package com.wallet.crypto.trustapp.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.wallet.crypto.trustapp.R;

/**
 * Created by lingjianzhong on 2018/5/10.
 * 备份
 */

public class CreateBackupActivity extends BaseActivity{
    private ImageView mClose;
    private TextView mTitle;
    private TextView mKey;
    private Button mNext;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_create_backup);
        initView();
    }

    private void initView() {
        mClose = findViewById(R.id.top_icon);
        mTitle = findViewById(R.id.top_title);
        mTitle.setVisibility(View.VISIBLE);
        mTitle.setText(R.string.s0025);
        mKey = findViewById(R.id.about_backup_key);
        mNext = findViewById(R.id.next);
        mClose.setOnClickListener(this::OnCloseListener);
        mKey.setOnClickListener(this::OnAboutBackupkeyListener);
        mNext.setOnClickListener(this::OnNextListener);
    }

    private void OnNextListener(View view) {
    }

    private void OnAboutBackupkeyListener(View view) {
        Intent intent = new Intent(this,PromptActivity.class);
        intent.putExtra("title",getString(R.string.s0028));
        intent.putExtra("content",getString(R.string.s0029));
        startActivity(intent);
    }

    private void OnCloseListener(View view) {
        finish();
    }
}
